<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="{{__PUBLIC__}}/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="{{__PUBLIC__}}/Admin/Flat/img/favicon.ico">
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="30">gid</th>
			  <th width="450">商品名称</th>
			 <th width="160">价格</th>
			 <th width="80">库存</th>
			 <th width="90">点击次数</th>
			 <th width="150">添加时间</th>
			  <th width="200">操作</th>
			</tr>
			{{foreach from="$goodsData" value="$v"}}
			<tr>
				<td>{{$v['gid']}}</td>
				<td>{{$v['gname']}}</td>
				<td>市场价:<del>{{$v['market_price']}}</del><p style="margin: 0;color: red;">商城价:<span>{{$v['shop_price']}}</span></p></td>
				<td>{{$v['artnum']}}</td>
				<td>{{$v['click']}}</td>
				<td>{{date('Y-m-d H:i:s',$v['time'])}}</td>
				<td>
					<a href="{{U('GoodsLists/index',array('gid'=>$v['gid'],'tid'=>$v['type_tid']))}}" class="btn btn-sm btn-primary">货品列表 </a>
					<a href="{{U('Goods/edit',array('gid'=>$v['gid']))}}" class="btn btn-sm btn-warning">编辑</a>
					<a href="javascript:;" class="btn btn-sm btn-danger" onclick="if(confirm('确定要删除吗？亲~~')) location.href='{{U("Goods/del",array("gid"=>$v["gid"]))}}'">删除</a>
				</td>
			</tr>
			{{endforeach}}
		</table>
		<center>
			<div class="page pagination">
				<ul>
					{{$page}}
				</ul>
			</div>
		</center>
	</body>
</html>
